package unicamp.mc;

import java.util.ArrayList;

import android.graphics.drawable.Drawable;

import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;

public class OverlayIcon extends ItemizedOverlay<OverlayItem> {
	
	private ArrayList<OverlayItem> overItens;
	
	public OverlayIcon(Drawable defaultMarker) {
		super(boundCenterBottom(defaultMarker));
	}
	
	public void addOverlay(OverlayItem overlay) {
	    overItens.add(overlay);
	    populate();
	}

	@Override
	protected OverlayItem createItem(int i) {
		  return overItens.get(i);
		}

	@Override
	public int size() {		
		return overItens.size();
	}

	

}
